<?php

	if(empty($_GET)) {
		exit;
	}
	
	// define custom variable column names here, but make sure the column exists or you will get an error
	$variable = array();
	$variable[0] = "special_column_1";
	$variable[1] = "special_column_2";
	$variable[2] = "cool_column_3";
	
	
	// get custom variables... lets assume that there 500 custom (haha, yeah right!)
	$custom = '';
	for($i = 0; $i < 500; $i++) {
		if(isset($_GET["variable" . $i])) {
			$custom .= "`" . $variable[$i] . "`='" . add($_GET["variable" . $i]) . "', ";
		} else {
			break;
		}
	}
	
	
	// insert into db
	$query = "insert into `gooptracker` set
						" . $custom . "
						`ip`='" . $_SERVER["REMOTE_ADDR"] . "', 
						`browser`='" . add($_SERVER["HTTP_USER_AGENT"]) . "', 
						`url`='" . add($_GET["url"]) . "', 
						`title`='" . add($_GET["title"]) . "', 
						`datetime`=NOW()";

	
	// do the query
	//mysql_query($query);

?>